home *** CD-ROM | disk | FTP | other *** search
/ Visual Basic Source Code / Visual Basic Source Code.iso / vbsource / animgi1a / form1.frm < prev   
Text File  |  1999-09-23  |  3KB  |  105 lines

  1. VERSION 5.00
  2. Object = "{F9043C88-F6F2-101A-A3C9-08002B2F49FB}#1.1#0"; "COMDLG32.OCX"
  3. Object = "*\AProject2.vbp"
  4. Begin VB.Form frmAnimGIF 
  5.    AutoRedraw      =   -1  'True
  6.    BorderStyle     =   0  'Kein
  7.    Caption         =   "Form1"
  8.    ClientHeight    =   5595
  9.    ClientLeft      =   0
  10.    ClientTop       =   0
  11.    ClientWidth     =   5940
  12.    LinkTopic       =   "Form1"
  13.    MaxButton       =   0   'False
  14.    MinButton       =   0   'False
  15.    ScaleHeight     =   5595
  16.    ScaleWidth      =   5940
  17.    ShowInTaskbar   =   0   'False
  18.    StartUpPosition =   2  'Bildschirmmitte
  19.    Begin Project1.UserControl1 UserControl11 
  20.       Height          =   1335
  21.       Left            =   120
  22.       TabIndex        =   3
  23.       Top             =   1320
  24.       Width           =   1695
  25.       _ExtentX        =   2990
  26.       _ExtentY        =   2355
  27.    End
  28.    Begin VB.TextBox Text2 
  29.       BackColor       =   &H8000000F&
  30.       Height          =   375
  31.       Left            =   120
  32.       TabIndex        =   2
  33.       Text            =   "Text1"
  34.       Top             =   720
  35.       Width           =   3375
  36.    End
  37.    Begin MSComDlg.CommonDialog CommonDialog1 
  38.       Left            =   2520
  39.       Top             =   120
  40.       _ExtentX        =   847
  41.       _ExtentY        =   847
  42.       _Version        =   327680
  43.    End
  44.    Begin VB.CommandButton Command3 
  45.       Caption         =   "Exit"
  46.       Height          =   495
  47.       Left            =   1320
  48.       TabIndex        =   1
  49.       Top             =   120
  50.       Width           =   1095
  51.    End
  52.    Begin VB.CommandButton Command2 
  53.       Caption         =   "Open"
  54.       Height          =   495
  55.       Left            =   120
  56.       TabIndex        =   0
  57.       Top             =   120
  58.       Width           =   1095
  59.    End
  60. End
  61. Attribute VB_Name = "frmAnimGIF"
  62. Attribute VB_GlobalNameSpace = False
  63. Attribute VB_Creatable = False
  64. Attribute VB_PredeclaredId = True
  65. Attribute VB_Exposed = False
  66.  
  67. Private Sub Command2_Click()
  68.     CommonDialog1.CancelError = True
  69.     On Error GoTo Err_Handler
  70.     CommonDialog1.Filter = "GIF Files (*.gif)|*.gif|JPG files (*.jpg)|*.jpg;*.jpeg"
  71.     CommonDialog1.ShowOpen
  72.     GoTo t2
  73. Err_Handler:
  74.     MsgBox "An Error Has Occured."
  75.     Exit Sub
  76. t2:
  77.     UserControl11.AnimGif = CommonDialog1.filename
  78.     UserControl11.BackColor = &H0
  79.     UserControl11.AnimStart
  80.     UserControl12.AnimGif = CommonDialog1.filename
  81.     UserControl12.BackColor = &H0
  82.     UserControl12.AnimStart
  83.     UserControl13.AnimGif = CommonDialog1.filename
  84.     UserControl13.BackColor = &H0
  85.     UserControl13.AnimStart
  86. End Sub
  87.  
  88. Private Sub Command3_Click()
  89. End
  90. End Sub
  91.  
  92.  
  93. Private Sub UserControl11_ButtonDown()
  94.     Text2.Text = "down"
  95. End Sub
  96.  
  97. Private Sub UserControl11_ButtonNormal()
  98.     Text2.Text = "Norm"
  99. End Sub
  100.  
  101. Private Sub UserControl11_ButtonRollover()
  102.     Text2.Text = "rollover"
  103. End Sub
  104.  
  105.